package review;

/**
 * @author 郝文雪
 * @date 2022/7/24 11:15
 * @Description Test
 */
public class Singleton {
    //饿汉模式
     private Singleton(){

    }
    private static Singleton singleton=new Singleton();

     public static Singleton getInstance(){
         return singleton;
     }

}
